<? $cnt = count($recommended); ?>

<div class="sliderWrapper clearfix">

    <ul class="rslides">

        <? for ($i = 0; $i < $cnt; $i++): ?>

        <li>
            <?
            $obj_name = URLify::filter($recommended[$i]->object_name);
            $href = lang_url('accommodation/' . $obj_name . '-' . $recommended[$i]->object_ID . '?preview=1&room_id=' . $recommended[$i]->lowest_price_room_id . "&currency=" . currency_sign());
            $thumbnail = HOST_URL_HOTELS . 'gallery/' . $recommended[$i]->photo_path . '/thumb_1280x515/' . $recommended[$i]->photo_name;
            $stars = (int)$recommended[$i]->object_number_of_stars;
            ?>
            <img src="<?= $thumbnail ?>" alt="<?= $recommended[$i]->object_name ?>"/>

            <div class="sliderContent">

                <div class="sliderTitles">
                    <h1><?= $recommended[$i]->object_name ?></h1>
                    <br />
                    <h2><?= lang('montenegro'); ?></h2>
                </div>

                <div class="sliderDetails">
                    <div><?= limit_text($recommended[$i]->object_information, 75, TRUE, TRUE) ?></div>
                    <span><?= lang(currency_sign()) ?> <?= round($recommended[$i]->lowest_price) ?><span>/<?= strtolower(lang('day')); ?></span></span> 
                    <a class="buttonLink" href="<?= $href ?>"><?= strtolower(lang('res.book_now')); ?> &raquo;</a>
                    <div class="triangle"></div>
                </div>

            </div>

        </li>

        <? endfor; ?>

    </ul>
</div>